package com.yunban.project.message.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunban.project.message.enums.MessageType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lijiajun
 * @date: 2025-03-07
 * @version: 1.0
 */
@Data
@Schema(description = "CSMessageResp")
public class CSMessageResp implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "消息ID")
    private Long id;
    @Schema(description = "消息内容")
    private String message;
    @Schema(description = "发送人")
    private MessageType type;
    @Schema(description = "会话ID")
    private String sessionId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
